

<?php 

	  include('../../Connections/KRAPPERCON.php');  
	  
	  $sql='call usp_listfullarticulo("'.clearChar(getParam('desArt','')).'")';
	  $res = $mysqli->query($sql);
?>
<div  align="center">
<form id="frmArtPop" name="frmArtPop" action="Mantenimientos/Listas/ListArt.php"  >
  <table style="" >
   <tr> 
      <td class="labelfp" style="padding-left:0px">  Articulo </td>
      <td><input type="text" name="desArt" id="desArt" style="width:260px" value="<?php echo clearChar(getParam('desArt','')) ?>" onkeypress="" />
      <!-- return isNumberKeyW13(event) -->
      </td> 
   </tr>
  </table>
</form>  
</div>  

  <table>   
  <table id="tbl_articulos" class="tableIn" width="100%" border="1" rules="all" cellpadding="2" cellspacing="1" >
  <thead><tr>
    <th style="width:20px">selec</th>
    <th style="width:30px;text-align:center">ID</th>
    <th>Descripción</th>     
    <th style="width:60px;">Costo</th>
    <th style="width:60px;">Precio</th>
  </tr>
  </thead> 
  <tbody>
  <?php 
    if($res){	
		while($row = $res->fetch_assoc()){
  ?>
   <tr>
       <td style="text-align:center">
       <input type="radio" name="chk_artid" class="chk_artid" value="<?php echo $row['ArticuloID']?>"></td> 
      <td style="width:30px"><?php echo $row['ArticuloID']?></td>
      <td><?php echo $row['ArticuloName']?></td>
      <td><?php echo $row['ArticuloCos']?></td>
      <td><?php echo $row['ArticuloPre']?></td>
   </tr>
  <?php 
		}
		
		$res->close();
        $mysqli->next_result();
	}
  ?> 
   
  </tbody>
  </table>   
    
 
   <div id="DIVlista" title="Inversiones Krapper" class="alerta" style=""></div>
   
<script type="text/javascript">
    
	var  _url=$('#frmArtPop').attr('action');
	$('#desArt').focus();

    $('#desArt').keypress(function(event){
	     
		 if ( event.which == 13 ) {
            //event.preventDefault();
			//alert('13')
			var _datos=$('#frmArtPop').serialize();
			$('#DIVlista').loadppd(_url,_datos,null);
			return false;
        }
		 	
    });
   
   
</script>
